package com.newlink.building.secret.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.*
import io.reactivex.Observable

/**
 * Created by xiaodong on 2022/10/2.
 */
interface Module_Secret_SecretKeyContract {
    interface View : IView {
        fun refreshSecretKeyInfo(data: SecretKeyData)
        fun refreshDeleteStatus(data: StatusData)
    }

    interface Presenter : IPresenter<View> {
        fun getSecretKeyInfo(requestBean: SecretKeyInfoRequest)
        fun deleteSecretKey(requestBean: SecretKeyDeleteRequest)
    }

    interface Model : IModel {
        fun getSecretKeyInfo(requestBean: SecretKeyInfoRequest): Observable<HttpResult<SecretKeyData>>
        fun deleteSecretKey(requestBean: SecretKeyDeleteRequest): Observable<HttpResult<StatusData>>
    }
}